package joc.contract;

import java.lang.annotation.Annotation;



public class GreaterThanLongContract implements Contract {

	@Override
	public Class<? extends Annotation> getAnnotationClass() {
		return GreaterThanLong.class;
	}

	@ForFieldInsertAtBeginningOfAllMethods
	@ForFieldInsertAtEndOfAllMethods
	@ForParameterInsertAtBeginningOfMethod
	public boolean checkContract(GreaterThanLong annotation, long value) {
		return value > annotation.value();
	}

}
